package Study.company;

public class Main {

    public static void main(String[] args) {
	// write your code here
        int sum = 0;
        for (int i = 1; i <=100 ; i++) {
            int count = 0;
            for (int j = 1; j <= i; j++) {
                if (i % j == 0){
                    count++;
                }
                if (count > 2){
                    continue;
                }
            }
            if (count == 2) {
                sum += i;
            }
        }
        System.out.println(sum);
    }
}
